package org.jeecg.modules.purchase.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 入库物品
 * @Author: jeecg-boot
 * @Date:   2022-11-16
 * @Version: V1.0
 */
@ApiModel(value="purchase_stock_in_goods对象", description="入库物品")
@Data
@TableName("purchase_stock_in_goods")
public class PurchaseStockInGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**入库单id*/
    @ApiModelProperty(value = "入库单id")
    private String stockInId;
	/**入库编码*/
//	@Excel(name = "入库编码", width = 15)
    @ApiModelProperty(value = "入库编码")
    private String stockInCode;
	/**物品名称*/
	@Excel(name = "物品名称", width = 15)
    @ApiModelProperty(value = "物品名称")
    private String goodsName;
	/**物品分类*/
	@Excel(name = "物品分类", width = 15, dicCode = "purchase_goods_type")
	@Dict(dicCode = "purchase_goods_type")
    @ApiModelProperty(value = "物品分类")
    private String goodsTypeCode;
	/**物品编码*/
	@Excel(name = "物品编码", width = 15)
    @ApiModelProperty(value = "物品编码")
    private String goodsCode;
	/**品牌*/
	@Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String brand;
	/**规格/尺寸/型号*/
	@Excel(name = "规格/尺寸/型号", width = 15)
    @ApiModelProperty(value = "规格/尺寸/型号")
    private String size;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "purchase_unit")
	@Dict(dicCode = "purchase_unit")
    @ApiModelProperty(value = "单位")
    private String unit;
	/**单价*/
	@Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private java.math.BigDecimal unitPrice;
	/**采购数量*/
	@Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private java.math.BigDecimal number;
	/**本次入库数量*/
	@Excel(name = "本次入库数量", width = 15)
    @ApiModelProperty(value = "本次入库数量")
    private java.math.BigDecimal finalNumber;
	/**小计*/
	@Excel(name = "小计", width = 15)
    @ApiModelProperty(value = "小计")
    private Double total;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill= FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;
	/**最后修改人*/
    @TableField(fill= FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改人")
    private String updateBy;
	/**最后修改时间*/
    @TableField(fill= FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**逻辑删除  0表示未删除  1表示删除*/
    @TableLogic
//	@Excel(name = "逻辑删除  0表示未删除  1表示删除", width = 15)
    @ApiModelProperty(value = "逻辑删除  0表示未删除  1表示删除")
    private Integer delFlag;
}
